<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/28
 * Time: 20:57
 */

namespace app\api\validate;

class Num extends BaseValidate
{
    protected $rule=[
        'num'=>'isPositiveInteger|between:1,20'
    ];
    protected $message=[
        'num'=>'num必须是1-20之间的正整数'
    ];
}